import userController from '../controller/user-controller';

const prefix = '/user'

export default [
  {
    path: prefix + '/',
    method: 'get',
    action: userController.hello
  },
  {
    path: prefix + '/getUserInfo',
    method: 'get',
    action: userController.getUserInfo
  },
  {
    path: prefix + '/addUser',
    method: 'post',
    action: userController.addUser
  },
  {
    path: prefix + '/getPaginUser',
    method: 'get',
    action: userController.getPaginUser
  },
  {
    path: prefix + '/updateUser',
    method: 'post',
    action: userController.updateUser
  },
  {
    path: prefix + '/deleteUser',
    method: 'post',
    action: userController.deleteUser
  }
];
